package com.example.demo.service;


import com.example.demo.entity.Longin;
import com.example.demo.mapper.LonginMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



@Service
public class LonginService {

    @Autowired
    private LonginMapper longinMapper;


    public Longin getLoninPassword(String name) {
        return longinMapper.getPassword(name);
    }


    public void insertlong(String name,String password) {
        longinMapper.insertlong(name,password);
        System.out.println(name+"  "+password);
    }


}
